package net.zjitc.link;

public class DoubleNode<T> {
    DoubleNode<T> pre; //指向上一个节点
    T data;
    DoubleNode<T> next; //指向下一个节点


    public DoubleNode(T data) {
        this.data = data;
    }

    public DoubleNode(DoubleNode<T> pre, T data) {
        this.pre = pre;
        this.data = data;
    }

    public DoubleNode(T data, DoubleNode<T> next) {
        this.data = data;
        this.next = next;
    }

    public DoubleNode(DoubleNode<T> pre, T data, DoubleNode<T> next) {
        this.pre = pre;
        this.data = data;
        this.next = next;
    }

}
